package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 类别管理
 * @author Rongjie
 */
@Data
@TableName("mall_goods_category")
@KeySequence(value = "mall_goods_category_SEQ")
@ApiModel(value = "MallGoodsCategory对象")
public class MallGoodsCategory implements Serializable{

       @ApiModelProperty(value = "归属管理员的uuid")
       private String appKey;

       @TableId(value = "category_key", type = IdType.UUID)
       private String categoryKey;

       @ApiModelProperty(value = "名称")
       private String name;

       @ApiModelProperty(value = "副标题")
       private String subTitle;

       @ApiModelProperty(value = "1启用状态", example = "1")
       private Integer state;

       private Integer createTime;

       private Integer updateTime;

       private Integer sort;

       @ApiModelProperty(value = "是否是推荐分类 默认0 不是,1是")
       private Boolean recommend;

       @ApiModelProperty(value = "分类图片")
       private String cateImg;

       @ApiModelProperty(value = "分类的类型；1:首页菜单；2:首页商品模块", example = "1")
       private Integer type;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
